@extends('layouts.app')
@section('header')
     @include('common.header')
@stop
@section('footer')
     @include('common.footer')
@stop
@section('content')
<div class="banner1"></div>
<div class="dlxq">
            <h2 style="padding-left: 75px">登录</h2>
            <form class="form-horizontal" id="ll" method="POST" action="{{ route('login') }}">
            {{ csrf_field() }}
            <ul>
                <li><span>手机号码</span><i><input id="tel" class="wby1" name="mobile" placeholder="请输入您的手机号" type="text"></i></li>
                <li><span>登录密码</span><i><input id="pass"  class="wby1" name="password" type="password"></i></li>
                <li><p>

                    <a href="{{ route('password.request') }}">忘记密码</a>

                    <a class="fr" href="/register">免费注册</a></p>
                </li>
                <li><i><input style="margin-left: 90px;    width: 340px;" class="btn1" name="" onclick="login()" type="button" value="登录"></i></li>
            </ul>
            </form>
        </div>
<script type="text/javascript">
function login()
{
	tel = $('#tel').val();
	pass = $('#pass').val();
	if(!checkMobile(tel))
	{
    layer.msg('请填写正确的手机号.');
    return false;
	}
	if(pass.length < 6)
	{
	layer.msg('密码长度不少于6位.');
	return false;
	}
	$('#ll').submit();
	

}
</script>

@endsection
